﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CtpTrader.Core.Common;
using CtpTrader.Core.Quote;

namespace CtpTrader.Core.Trade
{
    /// <summary>
    /// 交易委托单基类
    /// </summary>
    public abstract class Order
    {
        /// <summary>
        /// 策略名称
        /// </summary>
        public string Strategy { get; set; }

        /// <summary>
        /// 账户
        /// </summary>
        public Account Account { get; set; }

        /// <summary>
        /// 合约
        /// </summary>
        public string InstrumentID { get; set; }

        /// <summary>
        /// 交易级别单位
        /// </summary>
        public BarUnit BarUnit { get; set; }

        /// <summary>
        /// 买卖方向
        /// </summary>
        public DirectionType Direction { get; set; }

        /// <summary>
        /// 操作类型（开仓/平仓）
        /// </summary>
        public ActionType Action { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Volume { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public double Price { get; set; }
    }
}
